package com.example.springboot_demo;

import com.example.springboot_demo.dto.Goods;
import com.example.springboot_demo.dto.test.Student;
import com.example.springboot_demo.mapper.GoodsMapper;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * <P> @Author: SongKeCheng
 * <P> Type: Class
 * <P> Description:
 * <P> Date: 2024/6/21:8:19
 */

@SuppressWarnings({"unchecked", ""})
@SpringBootApplication
@Slf4j
@MapperScan(basePackages = "com.example.springboot_demo.mapper")
public class SpringBootDemoApplication {


    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(SpringBootDemoApplication.class);
        //通过类型
        Student student = run.getBean(Student.class);
        log.info("student :{}",student.getTeacher2());
    }




}
